Skip to main content

Query Sub-Account API Keys

Type: GET

Description: /v4/user/account/api-key/broker-sub

Returns the API Keys of the broker's sub-accounts. The request must be signed with the broker master account's API Key. The accessKey is masked and no secretKey is returned.

Parameters

NameTypeMandatoryDefaultDescriptionRanges
subAccountIdlongfalse-Filter by sub-account; omit to list all sub-accounts of this broker-

Response Parameters

NameTypeDescription
subAccountIdlongSub-account id
accessKeystringMasked access key
permissionsstring[]Permission codes
bindIpsstring[]Bound IPs
statusstringactive / disabled
createTimelongCreation time (ms)

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": [
{
"subAccountId": 10049631158745,
"accessKey": "69af****0840",
"permissions": ["QUERY"],
"bindIps": [],
"status": "active",
"createTime": 1784088472976
}
],
"success": true
}